package com.zbf.tspring.springEvent;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author: LCG
 * @date: 2022-04-16 16:30:36
 * @description:
 **/
@Component
public class MyApplicationListener2 implements ApplicationListener<MyEvent2> {
    @Override
    public void onApplicationEvent(MyEvent2 myEvent2) {
        System.out.println("=======event2======>"+myEvent2.getSource());
    }
}
